import { Body, Controller, Logger, Post } from '@nestjs/common';
import { BotService } from './bot.service';
import { ApiOperation, ApiTags } from '@nestjs/swagger';
import { ICreateUser } from './bot.dto';

@ApiTags('pbotfc')
@Controller('bot')
export class BotController {
    private readonly logger: Logger = new Logger(BotController.name);
    constructor(private botService: BotService) {}

    @ApiOperation({
        description: 'register',
    })
    @Post('')
    async test(@Body() data: ICreateUser) {
        return await this.botService.createUser(data);
    }
}
